- R comes with many demo data sets.
- Most of these are data frames.
## Loads the iris data set. It provides the measurements (cm)
## of the sepal length and width, and petal length and width,
## respectively, for 50 flowers from 3 species of iris.
data(iris)
DEMO: Four Ways To View A Data Frame:
- Use the RStudio Interface. Top-Right Pane
- Use the view command.
View(iris).
- Enter the name of the data fram into the REPL console.
- Easiest, but inefficient for large data sets.
- Use the head() and tail() commands.